package com.eric.service;

import com.eric.bean.CodeBlockDetail;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/3/20.
 */
public interface CodeBlockDetailService {

    /**
     * 查找
     * @param blockDetailId
     * @return
     */
    public CodeBlockDetail getCodeBlockById(int blockDetailId);

    /**
     * 新增
     * @param blockDetail
     * @return
     */
    public int doAdd(CodeBlockDetail blockDetail);

    /**
     * 删除
     * @param id
     * @return
     */
    public int delete(String id);

    /**
     * 修改
     * @param blockDetail
     * @return
     */
    public int update(CodeBlockDetail blockDetail);

    /**
     * 根据版块ID获取列表
     * @param blockID
     * @return
     */
    public List<Map> getList(String blockID);


    /**
     * 根据blockID删除
     * @param blockID
     * @return
     */
    public int deleteByBlockID(String blockID);
}
